<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
 
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>

<div class="container">
    <h1>Editar Usuario</h1><br/><br/>
    <form:form action="edit" method="post" commandName="usuario" cssClass="form-horizontal">
        <div class="row">
            <form:hidden path="idusuario"></form:hidden>
                   
            <div class="control-group">
                <label>Nombre:*</label>
                <div class="controls">
                    <form:input path="nombre"></form:input>
                    <form:errors path="nombre" cssstyle="color:red"></form:errors>
                </div>
 
            </div>
                

            <div class="control-group">
                <label>Apellido Paterno:*</label>
                <div class="controls">
                    <form:input path="apellidopaterno"></form:input>
                    <form:errors path="apellidopaterno" cssstyle="color:red"></form:errors>
                </div>
            </div>                
                
         

            <div class="control-group">
                <label>Apellido Materno*</label>
                <div class="controls">
                    <form:input path="apellidoMaterno"></form:input>
                    <form:errors path="apellidoMaterno" cssstyle="color:red"></form:errors>
                </div>
            </div>                
                

            <div class="control-group">
                <label>Sexo*</label>
                <div class="controls">
                    <form:input path="sexo"></form:input>
                    <form:errors path="sexo" cssstyle="color:red"></form:errors>
                </div>
            </div>                
                
      
            <div class="control-group">
                <label>Tipo Documento*</label>
                <div class="controls">
                    <form:input path="idtipodocumento"></form:input>
                    <form:errors path="idtipodocumento" cssstyle="color:red"></form:errors>
                </div>
            </div>                  
                

            <div class="control-group">
                <label>Celular*</label>
                <div class="controls">
                    <form:input path="celular"></form:input>
                    <form:errors path="celular" cssstyle="color:red"></form:errors>
                </div>
            </div>                  
                
                
            <div class="control-group">
                <label>Direccion*</label>
                <div class="controls">
                    <form:input path="direccion"></form:input>
                    <form:errors path="direccion" cssstyle="color:red"></form:errors>
                </div>
            </div>                  
                
                
                
 
                
                
                
                
            <div class="control-group">
                <label>Email:*</label>
                <div class="controls">
                    <form:input path="email"></form:input><label></label>
                    <form:errors path="email" cssstyle="color:red"></form:errors>
                </div>
            </div> 
                                

            <div class="control-group">
                <label>Password*</label>
                <div class="controls">
                    <form:input  path="contrasenia"></form:input><label></label>
                    <form:errors path="contrasenia" cssstyle="color:red"></form:errors>
                </div>
            </div> 
                
        </div>
        <div class="actions" style="margin-left: 160px;">
            <input name="" value="Editar" type="submit" class="btn btn-primary">
            <a style="margin-left: 5px;" href="<c:url value='/pages/usuarios/index'/>">Cancelar</a>
        </div>
    </form:form>
</div>
